package com.MovieManageSystem.service.implement;

import com.MovieManageSystem.domain.User;
import com.MovieManageSystem.mapper.UserMapper;
import com.MovieManageSystem.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public List<User> getUserList(User user) {
        return userMapper.getUserList(user);
    }

    @Override
    public User selectUserByUid(Long uid) {
        return userMapper.selectUserByVid(uid);
    }
    @Override
    public void insertUser(User user) {
        userMapper.insertUser(user);
    }

    @Override
    public void updateUser(User user) {
        userMapper.updateUser(user);
    }

    @Override
    public void deleteUserByUids(Long[] uids) {
        userMapper.deleteUserByUids(uids);
    }

    @Override
    public void deleteUserByUid(Long uid) {
        userMapper.deleteUserByUid(uid);
    }
}

